package org.kmobic33.simoge.modelgenerator.application;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import org.kmobic33.simoge.modelgenerator.ui.ModelGeneratorView;

public class Main {
    public static final String EDITING_MODE = "Editing";
    public static final String NULL_MODE = "";

    private ModelGeneratorView ui;

    public Main() throws Exception {
	startUserInterface();
    }

    private void startUserInterface() throws Exception {
	SwingUtilities.invokeAndWait(new Runnable() {
	    @Override
	    public void run() {
		ui = new ModelGeneratorView();
		ui.startIn(NULL_MODE);
	    }
	});
    }

    public static void main(String... args) throws Exception {
	UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
	new Main();
    }
}
